//
//  demoTests.m
//  demoTests
//
//  Created by sam on 04/23/2021.
//  Copyright (c) 2021 sam. All rights reserved.
//

// https://github.com/Specta/Specta

#import "SEGRootViewModel.h"

SpecBegin(InitialSpecs)

describe(@"these will fail", ^{
    
    __block SEGRootViewModel *viewModel;
    
    beforeEach(^{
        viewModel = [[SEGRootViewModel alloc] init];
    });
    
    afterEach(^{
        viewModel = nil;
    });
    
    context(@"阶段一测试", ^{
        it(@"阶段一测试执行1", ^{
            viewModel.dString = @"";
            
            [viewModel.messageSubject subscribeNext:^(id  _Nullable x) {
                NSLog(@"%@",x);
                
                expect(x).to.equal([NSArray class]);
            }];
            
            [viewModel.requestCommand execute:nil];
        });
    });
    
    it(@"can do maths", ^{
        expect(1).to.equal(2);
    });
});

SpecEnd

